package parser;

import java.io.FileNotFoundException;
import java.util.Arrays;

public class TestParser {
	public static void main(String args[]){
		DataParser dp = new DataParser("data.txt");

		double res[][] = dp.parse();

		System.out.println(dp.getNbrOfLines());

		double result1 = 0;
		double result2 = 0;

		long start = System.currentTimeMillis();
		result1 = dp.estEffort("Nominal,Low,High,Nominal,Nominal,Low,Low,Nominal,Nominal,Nominal,Nominal,High,High,Nominal,Low", 0.5, 10.4);
		result2 = dp.COCOMOestimation("High,Nominal,Very_High,High,High,Low,High,High,Nominal,Nominal,High,High,Low,Very_High,High",101);
		long stop = System.currentTimeMillis();

		System.out.println("Estimated effort: " + result1);
		System.out.println("Estimated effort: " + result2);
		System.out.println(stop - start);
	}
}
